import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import ArticleLsit from '@/components/article/List.vue'
import ArticleDetail from '@/components/article/Detail.vue'
import Api from '../api'

Vue.use(Router);

const $router = new Router({
  mode: 'history',
  linkActiveClass:"active",
  routes: [
    {
      path: '/',
      redirect:"/index",
      hidden:true
    },
    {
      path: '/index',
      name: 'index',
      component: ArticleLsit,
      meta:{
        title:"首页",
      },
      hidden:false
    },
    {
      path:"/article_detail/:id",
      name:"articleDetail",
      component:ArticleDetail,
      meta:{
        title:"文章详情"
      },
      hidden:true
    }
  ]
});



export default $router;
